<?php

namespace app\admin\model\xlzxinfo;

use think\Model;


class Certificate extends Model
{

    

    

    // 表名
    protected $name = 'mental_xlzxinfo_certificate';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];





    /*
     * 组装老师资质证书
     * */
    public static function getCertificate($certificate)
    {
        $certificate_ids = explode(',',$certificate);
        return self::whereIn('id',$certificate_ids)->select();
    }





}
